package org.xxpay.core.service;

import org.xxpay.core.entity.AlipayCashDetail;

import java.util.List;
import java.util.Map;

public interface IAlipayCashDetailService {

    List<AlipayCashDetail> select(int pageIndex, int pageSize, AlipayCashDetail record);

    int count(AlipayCashDetail record);

    AlipayCashDetail findById(Long od);

    int add(AlipayCashDetail record);

    int update(AlipayCashDetail record);

    /** 更新分账记录表 and 更新用户统计数据 **/
    void updateDetailAndUser(AlipayCashDetail updateRecord, Integer cashId, Integer alipayCashUserId);

    /** 根据红包Id查询分账用户记录集合 **/
    List<AlipayCashDetail> selectByCashId(Integer cashId);

    /** 查询统计数据, 显示今日/昨日分账总金额 **/
    Map<String, Long> selectTotalCashAmount(AlipayCashDetail record);

}
